package com.mycode.service;

import com.mycode.domain.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Zengsh123
 * @date 2020-03-17 15:26.
 */
@FeignClient(value = "seata-storage-service")
public interface StorageService {

    @PostMapping("storage/decrease")
    ResponseResult<Integer> decrease(@RequestParam("productId") Long productId,
                            @RequestParam("count") Integer count);

}
